import java.awt.image.BufferedImage;

//激光弹
public class LaserBullet extends Bullet{

    //属性

    //构造器
    public LaserBullet(int x, int y, int attack, boolean reverse) {
        super(x,y,attack*2,reverse,8,5,100);
        System.out.println(getSpeed());
    }

    public LaserBullet(int x, int y, int attack, boolean reverse, int speed) {
        super(x,y,attack*2,reverse,speed,5,100);
    }


    //方法



    @Override
    void Move() {
        if (!getReverse()){
            if (PlayPanel.getTime()%getSpeed() == 0){
                setY(getY()-1);
            }
        }else{
            if (PlayPanel.getTime()%getSpeed() == 0){
                setY(getY()+1);
            }
        }
    }

    @Override
    BufferedImage getImage() {
        return null;
    }
}
